﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<link href="<%=path%>/css/style_main.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/BackStyle.css" rel="stylesheet" type="text/css" />

<link href="${pageContext.request.contextPath}/js/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<%=path %>/js/WebCalendar.js"></script>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
<div class="box">
  <div class="sel">机床报警日志记录</div>

  <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#8ECAEB" 
            border="0">
    <tbody>
      <tr bgcolor="#e2e0d3">
        <td bgcolor="#8ECAEB"><table width="100%" border="0" cellspacing="1" cellpadding="3">
            <tr>
              <td width="20%" align="right" bgcolor="#e6f0f8">起始时间：</td>
              <td width="30%" align="left" bgcolor="#FFFFFF"><input name="textfield3" type="text"  class="Wdate"  id="textfield4" readonly onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss')" style="width:150px;" /></td>
              <td width="20%" align="right" bgcolor="#e6f0f8">结束时间：</td>
              <td width="30%" align="left" bgcolor="#FFFFFF"><input name="textfield" type="text"  class="Wdate"  id="textfield5" readonly onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss')" style="width:150px;" /></td>
            </tr>
        </table></td>
      </tr>
      <tr bgcolor="#e2e0d3">
        <td bgcolor="#DAEDF8"><table cellspacing="5" cellpadding="0" width="100%" border="0">
          <tbody>
            <tr>
              <td height="20" align="center"><a href="#" onfocus="this.blur()"><img src="<%=path%>/img/table/button_delsys.gif" width="60" height="20" border="0" /></a></td>
            </tr>
          </tbody>
        </table></td>
      </tr>
      <tr bgcolor="#e2e0d3">
        <td bgcolor="#8ECAEB"><table cellspacing="1" cellpadding="3" width="100%" bgcolor="#8ECAEB" 
            border="0">
          <tbody>
            <tr bgcolor="#e2e0d3">
              <td bgcolor="#C6E4F4" class="s9">机床编号</td>
              <td bgcolor="#C6E4F4" class="s9">机床名称</td>
              <td bgcolor="#C6E4F4" class="s9">报警类型</td>
            </tr>
            <c:forEach items="${alarms}" var="alarm">
	            <tr bgcolor="#f8f7f2">
	              <td bgcolor="#FFFFFF" class="s19">${alarm.machineCode }&nbsp;</td>
	              <td bgcolor="#FFFFFF" class="s19">${alarm.machineCode }&nbsp;</td>
	              <td bgcolor="#FFFFFF" class="s19" onclick="divDetail.style.display='inline'">${alarm.stateType }&nbsp;</td>
	            </tr>
           </c:forEach>
          </tbody>
        </table></td>
      </tr>
      
      <tr bgcolor="#e2e0d3">
        <td bgcolor="#DAEDF8"><table cellspacing="5" cellpadding="0" width="100%" border="0">
            <tbody>
              <tr>
                <td height="20" align="center"><!-- a href="#" onfocus="this.blur()"><img src="<%=path%>/img/table/view.gif" width="60" height="20" border="0" onclick="MM_openBrWindow('alarm_view.html','报警查看','width=500,height=200')" /></a> --> <a href="#" onfocus="this.blur()"><img src="<%=path%>/img/table/output.gif" width="60" height="20" border="0" /></a> <a href="#" onfocus="this.blur()"><img src="<%=path%>/img/table/close.gif" width="60" height="20" border="0" /></a></td>
              </tr>
            </tbody>
        </table></td>
      </tr>
      <tr bgcolor="#e2e0d3">
        <td height="1" bgcolor="#8ECAEB"></td>
      </tr>
    </tbody>
  </table>
</div>
</body>
</html>
